package com.bolingcavalry.crm.WeChatPush.service;

import com.dto.TaskReviewMessageDTO;

import java.util.Map;

public interface WeChatPushService {

    /**
     * 推送创建工单通知
     */
    void pushCreateWorkOrderNotice(String openid, Map<String, String> data);

    /**
     * 推送工单派工通知
     */
    void pushWorkOrderAssignmentNotice(String openid, Map<String, String> data);

    /**
     * 推送业务审核通知
     */
    void pushBusinessReviewNotice(String openid, Map<String, String> data);

    /**
     * 推送审核拒绝通知
     */
    void pushReviewRejectNotice(String openid, Map<String, String> data);

    /**
     * 推送任务完成通知
     */
    void pushTaskCompleteNotice(String openid, Map<String, String> data);

    /**
     * 推送问题反馈通知
     */
    void pushProblemFeedbackNotice(String openid, Map<String, String> data);

    /**
     * 根据消息类型推送消息
     */
    void pushMessageByMessageType(String openid, TaskReviewMessageDTO dto);

    /**
     * 获取微信access_token
     */
    String getAccessToken() throws Exception;
}